package com.jic.product.mapper;

import com.jic.product.entity.ProductPropertyValue;
import com.jic.product.manage.request.ProductPropertyValueEditRequest;
import com.jic.product.manage.request.ProductPropertyValueRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品属性名称值表
 * @author : 
 * @email : 
 * @since : 2020-01-10 07:03:01
 * @version : v1.0.0
 */
@Mapper
public interface  ProductPropertyValueMapper {

    long insert(ProductPropertyValueEditRequest productPropertyValueEditRequest);

    long delete(Long id);

    long update(ProductPropertyValue productPropertyValue);

    ProductPropertyValue queryByPrimaryKey(Long id);

    List<ProductPropertyValue> query(ProductPropertyValueRequest productPropertyValueRequest);

    List<ProductPropertyValue> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, ProductPropertyValue productPropertyValue);

    long queryPageCount(ProductPropertyValue productPropertyValue);
}